<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld/" prefix="bean"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld/" prefix="logic"%>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld/" prefix="html"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>


<div class="centerContent">
<h1><bean:message key="pmt.indices.titulo" /></h1>


<h3><bean:write name="controlAvance" property="nombreProyectoSel"/>/<bean:write name="controlAvance" property="nombrePeticionSel"/>/<bean:write name="controlAvance" property="nombreRecursoSel"/>  </h3>
<div class="pegados">

<table class="displayTable" style="width: 300px">
   <thead>
      <tr>
         <th><bean:message key="pmt.indices.indices" /></th>
         <logic:iterate id="indice" name="controlAvance" property="indices" length="1">
         	<logic:iterate id="valor" name="indice" property="valores" length="1">
         	<th><bean:write name="valor" property="key"/></th>
         </logic:iterate>
         </logic:iterate>

      </tr>

   </thead>
   <tbody>
 	 <logic:iterate id="indice" name="controlAvance" property="indices" >
      	<tr class=odd">
         	<td><bean:write name="indice" property="descripcion" /></td>
         		<logic:iterate id="valor" name="indice" property="valores" length="1">
         			<td style="text-align: right; font-weight: bold;"><bean:write name="valor" property="value"/></td>
         		</logic:iterate>
         </tr>
      </logic:iterate>
        

   </tbody>
</table>

</div>
<div class="conscrollx">
<table class="scrollTable, displayTable" style="margin: 0px">
  
   <thead>
    
      <tr>
      	<logic:iterate id="indice" name="controlAvance" property="indices" length="1" >
         	<logic:iterate id="valor" name="indice" property="valores" offset="1">
         		<th><bean:write name="valor" property="key"/></th>
         	</logic:iterate>
		
     	</logic:iterate>    
      </tr>
   </thead>
   <tbody>

    <logic:iterate id="indice" name="controlAvance" property="indices">
      <tr class="even">
       
         	<logic:iterate id="valor" name="indice" property="valores" offset="1" >
         		<td style="text-align: right;"><bean:write name="valor" property="value"/></td>
         	</logic:iterate>
	</tr>
    </logic:iterate>
   </tbody>
   
</table>
</div>

<br>

<display:table name="controlAvance.estimaciones"  export="false" class="displayTable" pagesize="1000" style="width: 50%" defaultorder="descending"
   decorator="ar.pmt.vista.decoradores.Wrapper">

   <display:column property="descripcion" titleKey="pmt.indices.estimaciones" style="text-align:left;" />
   <display:column property="tipico" titleKey="pmt.indices.tipico" style="text-align:right;" />
   <display:column property="atipico" style="text-align:right;" titleKey="pmt.indices.atipico" media="html" />
</display:table></div>